#define Humidifier_Variable

#include "userDef.h"

#ifdef WINE_CELLAR_MODE
void HumidifierAct(void)
{
    if (CtrlEndTime >= 16)
    {
        l_tarHum.run = l_tarHum.set;
    }

    if (b_power.run == ON && b_humidifier.set == ON && f_htu20_Err == FALSE)
    {
        if (f_Humidifier == 0)
        {
            if (l_tarHum.run > (htu20.hum + 30))
            {
                f_Humidifier = 1;
            }
        }
        else
        {
            if (l_tarHum.run <= (htu20.hum - 30))
            {
                f_Humidifier = 0;
            }
        }
    }
    else
    {
        f_Humidifier = 0;
    }
}
#endif
